// var URL_BASE = "https://apiceshi.sec91.com/";// 测试：

var URL_BASE = "https://api.sec91.com/"; // 正式：

function getBaseUrl(control, action) {
    var URL = URL_BASE + control + "/" + action + "?";
    // var app = getApp();
    // if (app.globalData.isLogin != false) {
    //   URL += "username=" + app.globalData.TUserInfo.username + "&";
    // }
    return URL;
}

let MockDataUrl = "http://rap2.taobao.org:38080/app/mock/253712/api/v1/";
const returnMockUrl = (url) => {
    return MockDataUrl + url
}

export {
    getBaseUrl,
    returnMockUrl
}